/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.*/
/**
 * Leaflet 示例配置文件：包含示例的分类、名称、缩略图、文件路径
 */
var identification = {
    name: "05Info.com"
};
var exampleConfig = {
    "viz": {
        name: "领悟地图",
        name_en: "Visualization",
        content: {
            "init": {
                name: "地图初始化",
                name_en: "InitMap",
                content: [
                {
                    name: "创建地图 高德地图",
                    name_en: "Init Amap",
                    thumbnail: "init-amap.png",
                    fileName: "0_initAmap"
                },
                {
                    name: "创建Leaflet（废弃 maptalks取代)",
                    name_en: "Init Leaflet",
                    thumbnail: "init-leaflet.png",
                    fileName: "0_initLmap"
                },
                {
                    name: "创建地图 MapTalks",
                    name_en: "Init MapTalks",
                    thumbnail: "init-maptalks.png",
                    fileName: "0_initTalksmap"
                },
                {
                    name: "创建地图 镇级用户",
                    name_en: "Init Amap usercode=2",
                    thumbnail: "init-user2_.png",
                    fileName: "0_initUser2"
                },
                {
                    name: "高德地图 不用网格掩盖",
                    thumbnail: "init-user2.png",
                    fileName: "0_AmapMask"
                },
                {
                    name: "MapTalks地图 不用网格掩盖",
                    thumbnail: "maptalks-mask0.png",
                    fileName: "0_MapTalksMask"
                },
                {
                    name: "配置和样式",
                    thumbnail: "map-config.png",
                    fileName: "0_commonConfig"
                },
                {
                    name: "瓦片配置",
                    thumbnail: "mulvetor.png",
                    fileName: "0_mulVetorConfig"
                }
            ]
            },
            "foos": {
                name: "被动方法",
                name_en: "被动方法",
                content: [
                    {
                        name: "监听加载完成(复杂样式注入)",
                        thumbnail: "l_tileVectorLayer_mvt4326.png",
                        fileName: "1_fooLoaded"
                    },
                    {
                        name: "监听层级切换",
                        thumbnail: "l_tileVectorLayer_mvt4326.png",
                        fileName: "1_handleGridChange"
                    }
                ]
               
            },
            "foos2": {
                name: "app主动方法",
                name_en: "app主动方法",
                content: [
                    {
                        name: "切换层级",
                        thumbnail: "l_heat.png",
                        fileName: "2_changePlace"
                    }
                ]
               
            },
            "foos3": {
                name: "lwmap方法",
                name_en: "lwmap方法",
                content: [
                    {
                        name: "加坐标点和清除坐标点",
                        thumbnail: "l_heat.png",
                        fileName: "3_markers"
                    },
                    {
                        name: "弹窗方法",
                        thumbnail: "l_heat.png",
                        fileName: "3_markerContent"
                    },
                    {
                        name: "聚合点",
                        thumbnail: "l_heat.png",
                        fileName: "3_clusterMarker"
                    },
                    {
                        name: "热力图",
                        thumbnail: "l_heat.png",
                        fileName: "3_heat"
                    },
                    {
                        name: "轨迹播放 指挥调度版",
                        thumbnail: "guiji.png",
                        fileName: "3_router_zhdd"
                    },
										{
										    name: "轨迹播放 自由版",
										    thumbnail: "zyguiji.png",
										    fileName: "3_guiji_qsd"
										}
                ]
               
            },
            "tools": {
                name: "工具",
                name_en: "工具",
                content: [
                    {
                        name: "坐标转换工具",
                        thumbnail: "tool-convert.png",
                        fileName: "4_tool"
                    },
                    {
                        name: "地图选点",
                        thumbnail: "tool-convert.png",
                        fileName: "choosepoint"
                    }
                ]
               
            }
        }
    },
    // "control": {
    //     name: "控件",
    //     name_en: "Control",
    //     content: {
    //         "draw": {
    //             name: "点线面绘制",
    //             name_en: "Draw",
    //             content: [{
    //                 name: "绘制与修改",
    //                 name_en: "draw and modify",
    //                 thumbnail: "l_drawAndModify.png",
    //                 fileName: "drawAndModify"
    //             }, {
    //                 name: "捕捉与修改",
    //                 name_en: "snap and modify",
    //                 thumbnail: "l_snapAndModify.png",
    //                 fileName: "snapAndModify"
    //             }]
    //         },
    //         "changeTileVersion": {
    //             name: "缓存切换",
    //             name_en: "Tile version switch",
    //             content: [{
    //                 name: "多版本缓存切换控件",
    //                 name_en: "tile version switch control",
    //                 thumbnail: "l_changeTileVersion.png",
    //                 fileName: "changeTileVersion"
    //             }]
    //         },
    //         "leafletOfficialControl": {
    //             name: "基础控件",
    //             name_en: "Base control",
    //             content: [{
    //                 name: "缩放控件",
    //                 name_en: "zoom control",
    //                 thumbnail: "l_controler_zoom.png",
    //                 fileName: "controler_zoom"
    //             }, {
    //                 name: "比例尺控件",
    //                 name_en: "scaleline control",
    //                 thumbnail: "l_controler_scaleline.png",
    //                 fileName: "controler_scaleline"
    //             }, {
    //                 name: "版权控件",
    //                 name_en: "attribution control",
    //                 thumbnail: "l_controler_attribution.png",
    //                 fileName: "controler_attribution"
    //             }, {
    //                 name: "图层切换",
    //                 name_en: "layer switch control",
    //                 thumbnail: "l_controler_layerswitcher.png",
    //                 fileName: "controler_layerswitcher"
    //             }, {
    //                 name: "自定义图标",
    //                 name_en: "markers with custom icons",
    //                 thumbnail: "l_controler_markersWithCustomIcons.png",
    //                 fileName: "controler_markersWithCustomIcons"
    //             }, {
    //                 name: "卷帘",
    //                 name_en: "roller blinds",
    //                 thumbnail: "l_controler_layerswitch.png",
    //                 fileName: "controler_layerswitch"
    //             }, {
    //                 name: "鹰眼图",
    //                 name_en: "overview map control",
    //                 thumbnail: "l_controler_overviewMap.png",
    //                 fileName: "controler_overviewMap"
    //             }]
    //         }
    //     }
    // },
    // "components": {
    //     name: "组件",
    //     name_en: "Components",
    //     content: {
    //         "componentsSuperMap": {
    //             name: "基础",
    //             name_en: "Basic",
    //             content: [{
    //                 name: "打开文件",
    //                 name_en: "open file component",
    //                 version: "9.1.1",
    //                 thumbnail: "components_openFile.png",
    //                 fileName: "components_openFile"
    //             }, {
    //                 name: "数据流服务",
    //                 name_en: "data flow service",
    //                 version: "9.1.1",
    //                 thumbnail: "components_dataFlow.png",
    //                 fileName: "components_dataFlow"
    //             }, {
    //                 name: "地址匹配与图层要素查询",
    //                 name_en: "address match add features search",
    //                 version: "9.1.1",
    //                 thumbnail: "components_Search.png",
    //                 fileName: "components_Search"
    //             },{
    //                 name: "客户端计算",
    //                 name_en: "client computation",
    //                 version: "9.1.1",
    //                 thumbnail: "components_clientComputation.png",
    //                 fileName: "components_clientComputation"
    //             },{
    //                 name: "分布式分析",
    //                 name_en: "distribute analysis",
    //                 version: "9.1.1",
    //                 thumbnail: "components_distributedAnalysis.png",
    //                 fileName: "components_distributedAnalysis"
    //             },{
    //                 name: "数据服务查询",
    //                 name_en: "data service query",
    //                 version: "9.1.1",
    //                 thumbnail: "components_dataServiceQuery.png",
    //                 fileName: "components_dataServiceQuery"
    //             },
    //             {
    //                 name: "图表_iServer",
    //                 name_en: "chart_iServer",
    //                 version: "9.1.2",
    //                 thumbnail: "components_chart_isvr.png",
    //                 fileName: "components_chart_isvr"
    //             },{
    //                 name: "图表_iPortal",
    //                 name_en: "chart_iPortal",
    //                 version: "9.1.2",
    //                 thumbnail: "components_chart_iptl.png",
    //                 fileName: "components_chart_iptl"
    //             } 
            
    //         ]
    //         },
    //         "componentsAdvanced": {
    //             name: "扩展",
    //             name_en: "Advanced",
    //             content: [{
    //                 name: "打开文件(React)",
    //                 name_en: "open file component(React)",
    //                 version: "9.1.1",
    //                 thumbnail: "components_openFile_react.png",
    //                 fileName: "components_openFile_react"
    //             }, {
    //                 name: "打开文件(Vue)",
    //                 name_en: "open file component(Vue)",
    //                 version: "9.1.1",
    //                 thumbnail: "components_openFile_vue.png",
    //                 fileName: "components_openFile_vue"
    //             }]
    //         }
    //     }
    // },
    // "OGC": {
    //     name: "OGC",
    //     name_en: "OGC",
    //     content: {
    //         "WMTS": {
    //             name: "WMTS",
    //             name_en: "WMTS",
    //             content: [{
    //                 name: "WMTS图层",
    //                 name_en: "WMTS layer",
    //                 thumbnail: "l_WMTSLayer.png",
    //                 fileName: "WMTSLayer"
    //             }]
    //         },
    //         "WMS": {
    //             name: "WMS",
    //             name_en: "WMS",
    //             content: [{
    //                 name: "WMS图层",
    //                 name_en: "WMS layer",
    //                 thumbnail: "l_WMSLayer.png",
    //                 fileName: "WMSLayer"
    //             }]
    //         }
    //     }
    // },
    // "mapping": {
    //     name: "互联网地图",
    //     name_en: "Third party map",
    //     localIgnore: true,
    //     content: {
    //         "Baidu": {
    //             name: "百度地图",
    //             name_en: "Baidu map",
    //             content: [{
    //                 name: "百度地图",
    //                 name_en: "baidu layer",
    //                 thumbnail: "l_baiduLayer.png",
    //                 fileName: "baiduLayer"
    //             }]
    //         },
    //         "Tianditu": {
    //             name: "天地图",
    //             name_en: "Tianditu",
    //             content: [{
    //                 name: "天地图-墨卡托",
    //                 name_en: "tianditu-mercator",
    //                 thumbnail: "l_tiandituLayer_mercator.png",
    //                 fileName: "tiandituLayer_mercator"
    //             }, {
    //                 name: "天地图-经纬度",
    //                 name_en: "tianditu-ll",
    //                 thumbnail: "l_tiandituLayer_ll.png",
    //                 fileName: "tiandituLayer_ll"
    //             }]
    //         },
    //         "cloud": {
    //             name: "超图云",
    //             name_en: "SuperMap Cloud",
    //             content: [{
    //                 name: "超图云地图",
    //                 name_en: "SuperMap Cloud layer",
    //                 thumbnail: "l_cloudLayer.png",
    //                 fileName: "cloudLayer"
    //             }]
    //         }
    //     }
    // }

};

/**
 *key值：为exampleConfig配置的key值或者fileName值
 *      （为中间节点时是key值，叶结点是fileName值）
 *value值：fontawesome字体icon名
 *不分层
 */
var sideBarIconConfig = {
    "iServer": "fa-server",
    "iPortal": "fa-desktop",
    "Online": "fa-cloud",
    "iManager": "fa-group",
    "Elasticsearch": "fa-tasks",
    "plot": "fa-edit",
    "dynamicPlot": "fa-pencil",
    "control": "fa-sliders",
    "components": "fa-window-restore",
    "clientSpatialAnalyst": "fa-object-group",
    "viz": "fa-map",
    "OGC": "fa-globe",
    "mapping": "fa-send"
};

/**
 *key值：为exampleConfig配置的key值
 *value值：fontawesome字体icon名
 *与sideBarIconConfig的区别：sideBarIconConfig包括侧边栏所有层级目录的图标，exampleIconConfig仅包括一级标题的图标
 */
var exampleIconConfig = {
    "iServer": "fa-server",
    "iPortal": "fa-desktop",
    "Online": "fa-cloud",
    "iManager": "fa-group",
    "Elasticsearch": "fa-tasks",
    "plot": "fa-edit",
    "dynamicPlot": "fa-pencil",
    "control": "fa-sliders",
    "components": "fa-window-restore",
    "clientSpatialAnalyst": "fa-object-group",
    "viz": "fa-map",
    "OGC": "fa-globe",
    "mapping": "fa-send"
};
window.leafletExampleConfig = exampleConfig;